var config = require('../config');
var db = require('../db');

var crypto = require("../utils/crypto")

db.init(config.mysql);

var login_config = config.login_server;
var login_server = require('./login');
login_server.start(login_config);

//连接数据库
// var mysql = require('mysql');
// var connection = mysql.createConnection({
//     host: 'localhost',
//     user: 'root',
//     password: 'ww123',
//     database:'nodejs'
// });

// connection.connect();
// //查询
// connection.query('SELECT 1 + 1 AS solution', function(err, rows, fields) {
//     if (err) throw err;
//     console.log('The solution is: ', rows[0].solution);
// });
// //关闭连接
// connection.end();


